// pages/select/select.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    name:"",
    ID:"",
    tem:"",
    blood:"",
    pulse:"",
    breath:"",
    weight:"",
    callname:"",
    call2:false
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.data.name=wx.getStorageSync('name'),
    this.data.ID=wx.getStorageSync('ID'),
    this.data.tem=wx.getStorageSync('tem'),
    this.data.blood=wx.getStorageSync('blood')
    this.data.pulse=wx.getStorageSync('pulse')
    this.data.breath=wx.getStorageSync('breath')
    this.data.weight=wx.getStorageSync('weight')
    // console.log(this.data.name);
    // console.log(this.data.ID);
    // console.log(this.data.tem);
    // console.log(this.data.blood);
    // console.log(this.data.pulse);
    // console.log(this.data.breath);
    // console.log(this.data.weight);
    this.setData({
      tem:this.data.tem,
      blood:this.data.blood,
      pulse:this.data.pulse,
      breath:this.data.breath,
      weight:this.data.weight,
      name:this.data.name,
      ID:this.data.ID,
    })
  },

  // 呼叫按钮

  Callnurse(){
    this.setData({
      call2:true,
      callname:this.data.name
    })
    console.log(this.data.call2);
    wx.setStorageSync('call2', this.data.call2);
    wx.setStorageSync('callname', this.data.callname);
  },

  CancelCall(){
    this.setData({
      call2:false
    })
    console.log(this.data.call2);
    wx.setStorageSync('call2', this.data.call2);
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})